package main

import (
	"fmt"
	"sync"
	"runtime"
)

func main(){
	runtime.GOMAXPROCS(6)
	var wg sync.WaitGroup
	for i := 0; i<10; i++ {
		wg.Add(1)
		go func() {
			defer wg.Done()
			fmt.Println("===: ", i)
		}()
	}
	wg.Wait()
}